public class Question4 {
    public static void main(String[] args) {
        // abc+cba+1333
        //100a+10b+c+100c+10b+a=1333
        //101a+20b+101c=1333
        //1313+20b=1333
        //>=4
        //for(........)
//        for(int i = 4;i < 10;i++){
//        System.out.println("a:" + i + "b:" + 1 + "c:" +(13-i));
//    }
//
//        for (int i = 100; i < 1000; i++) {
//        int abc = i;
//        int a = abc / 100;
//        abc %= 100;
//        int b = abc / 10;
//        int c  = abc % 10;
//        if(i + c * 100 + b * 10 + a == 1333){
//            System.out.println("a:" + a + ",b:" + b + ",c:" + c);
//        }
//
//    }
        for (int a = 1; a < 10; a++) {
            for (int b = 0; b < 10; b++) {
                for (int c = 0; c < 10; c++) {
                    if (a * 100 + b * 10 + c + c * 100 + b * 10 + a == 1333) {
                        System.out.println("a值为" + a + ",b值为" + b + ",c值为" + c);
                    }
                }
            }
        }
    }
}
